package com.hdsx.restful.ygzt.jdcjspxjg.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.jdcjspxjg.bean.Jdcjspxjg;
import com.hdsx.restful.ygzt.jdcjspxjg.mapper.JdcjspxjgMapper;
import com.hdsx.restful.ygzt.jdcjspxjg.service.JdcjspxjgService;

@Service
public class JdcjspxjgServiceImpl extends BaseOpearte<Jdcjspxjg> implements JdcjspxjgService {
	public JdcjspxjgServiceImpl() {
		super("GIS_JPJG");
	}

	@Resource(name="jdcjspxjgMapper")
	private JdcjspxjgMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String jyyhmc) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", jyyhmc);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Jdcjspxjg> queryList(String xzqhbm, String jyyhmc, int begin,
			int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", jyyhmc);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Jdcjspxjg> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Jdcjspxjg queryById(String id) {
		return mapper.selectById(id);
	}
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
